<?php
/**
 * @authors liuqinglin 
 * @email (2961181429@qq.com) 
 * @(https://my.oschina.net/shp32131)
 * @date    2016-11-22 21:34:36 
 */
defined('BASEPATH') OR exit('No direct script access allowed');

class Ajax extends Home_Controller {
    
    public function __construct()
    {
        parent::__construct();

        $this->load->model('ajax_model');
    }
    //返回文章分类数据
    public function get_article_category()
    {
    	if($this->ajax_model->get_article_category())
    	{
    		$data = $this->ajax_model->get_article_category();
    		echo json_encode($data);
            die();
    	}
    	return FALSE;
    }
}